import request from '../utils/request'

// 用户登录的请求接口
export function userLogin (data) {
  return request({
    url: 'v1_0/authorizations',
    method: 'POST',
    data: data
  })
}

// 刷新用户的token的接口
export function getNewToken () {
  return request({
    url: 'v1_0/authorizations',
    method: 'PUT',
    needToken: true
  })
}
